home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM 1995 Fall / PD-ROM F95.toast / Programming / Programming Utilities / C++BusErrorTest ƒ / main.cp < prev   
Encoding:
Text File  |  1994-11-25  |  457 b   |  19 lines  |  [TEXT/ttxt]

  1. //    Symantec C++ problem:
  2.  
  3. //    The following program causes a *** bus-error ***
  4. //    on a Quadra 700 (68040 CPU, all extensions off)
  5. //    if the "generate 68881 instructions" option is ON.
  6.  
  7. //    (This problems does not occur if the program is compiled
  8. //    with the C translator and ANSI instead of ANSI++ lib)
  9.  
  10. #include    <math.h>
  11.  
  12. int main()
  13. {
  14.     double    foo=    pow( 1.0, 1.0 );    //    *bus error*
  15.     return 0;
  16. }
  17.  
  18. //    (It seems to be a bug in the Symantec C++ 7.0.3 translator!)
  19.